Index: tools/idl_parser/test_parser/dictionary_web.idl |
diff --git a/tools/idl_parser/test_parser/dictionary_web.idl b/tools/idl_parser/test_parser/dictionary_web.idl |
index 507b288349363c75dc23294a49eec9eef86542d5..2fd602e1491e005165e652c0359d81d5dd24d544 100644 |
--- a/tools/idl_parser/test_parser/dictionary_web.idl |
+++ b/tools/idl_parser/test_parser/dictionary_web.idl |
@@ -84,6 +84,17 @@ dictionary { |
DOMString? setString = null; |
}; |
+/* TREE |
+ *Dictionary(MyDictionaryInvalidOptional) |
+ * Key(mandatory) |
+ * Type() |
+ * PrimitiveType(DOMString) |
+ * Error(Unexpected keyword "optional" after ">".) |
+ */ |
+dictionary MyDictionaryInvalidOptional { |
+ DOMString mandatory; |
+ sequence<DOMString> optional; |
+}; |
/* ERROR Unexpected identifier "NoColon" after identifier "ForParent". */ |
dictionary ForParent NoColon { |