Report a warning or error if an old language version or API version is used

#KT-25823 Fixed
This commit is contained in:
Alexander Udalov
2018-08-17 21:13:55 +02:00
committed by Ilya Gorbunov
parent db29eadba5
commit 02a9b03007
37 changed files with 94 additions and 76 deletions
@@ -1,7 +1,4 @@
compiler/testData/cli/jvm/apiVersion.kt:2:5: error: the feature "bound callable references" is only available since API version 1.1
""::class.isInstance(42)
^
compiler/testData/cli/jvm/apiVersion.kt:2:15: error: unresolved reference: isInstance
""::class.isInstance(42)
compiler/testData/cli/jvm/apiVersion.kt:2:15: error: unresolved reference: sealedSubclasses
""::class.sealedSubclasses
^
COMPILATION_ERROR