Skip to content

Commit

Permalink
fixed "Type inference failed" closes antlr#27
Browse files Browse the repository at this point in the history
  • Loading branch information
drieks committed Sep 10, 2019
1 parent 27ecb81 commit cf6564c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ class <parser.name>(input: TokenStream) : <superClass; null="Parser">(input) {
>>

vocabulary(literalNames, symbolicNames) ::= <<
private val LITERAL_NAMES = listOf(<literalNames:{t | <t>}; null="null", separator=", ", wrap, anchor>)
private val SYMBOLIC_NAMES = listOf(<symbolicNames:{t | <t>}; null="null", separator=", ", wrap, anchor>)
private val LITERAL_NAMES: List\<String?> = listOf(<literalNames:{t | <t>}; null="null", separator=", ", wrap, anchor>)
private val SYMBOLIC_NAMES: List\<String?> = listOf(<symbolicNames:{t | <t>}; null="null", separator=", ", wrap, anchor>)

val VOCABULARY = VocabularyImpl(LITERAL_NAMES.toTypedArray(), SYMBOLIC_NAMES.toTypedArray())
>>
Expand Down

0 comments on commit cf6564c

Please sign in to comment.