Fix error message for SUPERTYPE_IS_SUSPEND_FUNCTION_TYPE

#KT-48907 Fixed
This commit is contained in:
Mikhail Glukhikh
2022-01-10 19:07:29 +03:00
parent 1402bb2d45
commit 0f2f6334c2
4 changed files with 4 additions and 4 deletions
@@ -68,7 +68,7 @@ class SimpleKotlinGradleIT : KGPBaseTest() {
fun testLanguageVersion(gradleVersion: GradleVersion) {
project("languageVersion", gradleVersion) {
buildAndFail("build") {
assertOutputContains("Suspend function type is not allowed as supertypes")
assertOutputContains("Suspend function type is allowed as a supertype only since version 1.6")
}
}
}
@@ -1,4 +1,4 @@
source(new File(basedir, "../../../verify-common.bsh").getAbsolutePath());
assertBuildLogHasLine("[INFO] BUILD FAILURE");
assertBuildLogHasLineThatContains("Suspend function type is not allowed as supertypes");
assertBuildLogHasLineThatContains("Suspend function type is allowed as a supertype only since version 1.6");