Index: trunk/test/unit/org/openstreetmap/josm/data/osm/search/SearchCompilerTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/data/osm/search/SearchCompilerTest.java	(revision 13313)
+++ trunk/test/unit/org/openstreetmap/josm/data/osm/search/SearchCompilerTest.java	(revision 13317)
@@ -18,4 +18,5 @@
 import org.junit.Rule;
 import org.junit.Test;
+import org.junit.rules.ExpectedException;
 import org.openstreetmap.josm.TestUtils;
 import org.openstreetmap.josm.data.coor.LatLon;
@@ -55,4 +56,10 @@
     public JOSMTestRules test = new JOSMTestRules().preferences();
 
+    /**
+     * Rule to assert exception message.
+     */
+    @Rule
+    public ExpectedException expectedEx = ExpectedException.none();
+
     private static final class SearchContext {
         final DataSet ds = new DataSet();
@@ -686,3 +693,14 @@
         }
     }
+
+    /**
+     * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/15755">Bug #15755</a>.
+     * @throws SearchParseError always
+     */
+    @Test
+    public void testTicket15755() throws SearchParseError {
+        expectedEx.expect(SearchParseError.class);
+        expectedEx.expectMessage("<html>Expecting <code>:</code> after <i>type</i></html>");
+        SearchCompiler.compile("public_transport=stop_area -type");
+    }
 }
