Skip to content

AnnotationArgumentReference.Psi does not parse string templates correctly #631

@oldwomanjosiah

Description

@oldwomanjosiah

The string template parsing Here does not currently grab the entire string. When given a blob like

const val SOME_STR: String = "World!"

@AnnotatedWith(value = "Hello, $SOME_STR")
object SomeObj {}

annotationArgRef.value<Any>() returns the string "Hello, ". Seeing as the compiler enforces that all template entries are constantly resolvable the entire value should be resolvable, which would bring this in line with the other available expression types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions