Disable some features when LV=1.1 API=1.0.

Feature list:
 - bound callable references
 - local delegated properties
 - coroutines.

#KT-16017 Fixed
This commit is contained in:
Stanislav Erokhin
2017-02-13 09:48:55 +03:00
parent be0211cd49
commit b6fa10cf9e
43 changed files with 232 additions and 75 deletions
@@ -0,0 +1,3 @@
<!-- unsupportedFeature1 -->
<html>
The feature "destructuring lambda parameters" is only available since language version 1.1</html>
@@ -1,2 +0,0 @@
<!-- unsupportedFeature1 -->
The feature is only available since Kotlin 1.1: destructuring lambda parameters
-2
View File
@@ -1,2 +0,0 @@
<!-- urlMultiproject1 -->
The feature is experimental and should be turned on explicitly via a command line option or in IDE settings: multi platform projects (See: https://kotlinlang.org/docs/diagnostics/experimental-multitraget-projects)
@@ -1,5 +1,5 @@
// !DIAGNOSTICS_NUMBER: 1
// !DIAGNOSTICS: UNSUPPORTED_FEATURE
// !MESSAGE_TYPE: TEXT
// LANGUAGE_VERSION: 1.0
impl fun test() {}
suspend fun test() {}
+3
View File
@@ -0,0 +1,3 @@
<!-- urlRender1 -->
<html>
The feature "coroutines" is only available since language version 1.1 (see more <a href="https://kotlinlang.org/docs/diagnostics/experimental-coroutines">here</a>)</html>