Do not allow to use suspend functions in 1.0.6+

This commit is contained in:
Alexander Udalov
2017-01-11 16:34:36 +03:00
parent 4dd100122b
commit e3f4b6e77e
4 changed files with 172 additions and 4 deletions
@@ -58,9 +58,12 @@ enum class LanguageFeature(val sinceVersion: LanguageVersion?) {
}
}
enum class LanguageVersion(val versionString: String) : DescriptionAware {
KOTLIN_1_0("1.0"),
KOTLIN_1_1("1.1");
enum class LanguageVersion(val major: Int, val minor: Int) : DescriptionAware {
KOTLIN_1_0(1, 0),
KOTLIN_1_1(1, 1);
val versionString: String
get() = "$major.$minor"
override val description: String
get() = versionString