[ 
https://issues.apache.org/jira/browse/GROOVY-12425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Sun updated GROOVY-12425:
--------------------------------
    Summary: Refine error message for unclosed type argument and unclosed 
slashy string  (was: Refine error message for unclosed type argument)

> Refine error message for unclosed type argument and unclosed slashy string
> --------------------------------------------------------------------------
>
>                 Key: GROOVY-12425
>                 URL: https://issues.apache.org/jira/browse/GROOVY-12425
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Daniel Sun
>            Priority: Major
>
> The caret position is not accurate, column *14* should be better.
> {code}
>     @Test
>     void 'unclosed type argument'() {
>         expectParseError '''\
>             |List<Integer list2 = new ArrayList<Integer>()
>             |'''.stripMargin(), '''\
>             |Missing '>' @ line 1, column 1.
>             |   List<Integer list2 = new ArrayList<Integer>()
>             |   ^
>             |
>             |1 error
>             |'''.stripMargin()
>     }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to