[Assign plugin] Add a compiler plugin for overloading assign ('=') operator

This commit is contained in:
Anže Sodja
2022-09-01 07:51:38 +02:00
committed by Dmitriy Novozhilov
parent 6052962f50
commit 09d6dfc8bf
62 changed files with 2822 additions and 6 deletions
@@ -0,0 +1,22 @@
/localVariables.kt:18:5: error: val cannot be reassigned
property = "Fail"
^
/localVariables.kt:18:16: error: type mismatch: inferred type is String but StringProperty was expected
property = "Fail"
^
/localVariables.kt:23:5: error: val cannot be reassigned
property = StringProperty("Fail")
^
/localVariables.kt:28:16: error: type mismatch: inferred type is String but StringProperty was expected
property = "Fail"
^
/localVariables.kt:38:9: error: val cannot be reassigned
property = "Fail"
^
/localVariables.kt:38:20: error: type mismatch: inferred type is String but StringProperty was expected
property = "Fail"
^
/localVariables.kt:42:9: error: val cannot be reassigned
property = StringProperty("Fail")
^