[Gradle, JS] IR by default and report warnings for using legacy compiler
- just legacy - report warning about deprecation - both - report warning about deprecation of legacy - no compiler explicitly chosen - error about explicit setting compiler warn from cli legacy compiler nowarn flag - kotlin.js.compiler.nowarn KT-42326 KT-53074
This commit is contained in:
@@ -9,3 +9,4 @@ Output:
|
||||
-- JS --
|
||||
Exit code: OK
|
||||
Output:
|
||||
warning: legacy compiler is deprecated. Please migrate onto IR.
|
||||
|
||||
@@ -9,3 +9,4 @@ Output:
|
||||
-- JS --
|
||||
Exit code: OK
|
||||
Output:
|
||||
warning: legacy compiler is deprecated. Please migrate onto IR.
|
||||
|
||||
@@ -21,6 +21,7 @@ actual class Foo2 actual constructor(actual val y: String)
|
||||
-- JS --
|
||||
Exit code: COMPILATION_ERROR
|
||||
Output:
|
||||
warning: legacy compiler is deprecated. Please migrate onto IR.
|
||||
compiler/testData/multiplatform/inlineClasses/js.kt:5:1: error: actual class 'Foo2' has no corresponding expected declaration
|
||||
The following declaration is incompatible because modifiers are different (companion, inner, inline):
|
||||
public final expect inline class Foo2
|
||||
|
||||
@@ -5,3 +5,4 @@ Output:
|
||||
-- JS --
|
||||
Exit code: OK
|
||||
Output:
|
||||
warning: legacy compiler is deprecated. Please migrate onto IR.
|
||||
|
||||
@@ -9,4 +9,4 @@ Output:
|
||||
-- JS --
|
||||
Exit code: OK
|
||||
Output:
|
||||
|
||||
warning: legacy compiler is deprecated. Please migrate onto IR.
|
||||
|
||||
@@ -9,3 +9,4 @@ Output:
|
||||
-- JS --
|
||||
Exit code: OK
|
||||
Output:
|
||||
warning: legacy compiler is deprecated. Please migrate onto IR.
|
||||
|
||||
Reference in New Issue
Block a user