Fix AssertionError on incompatible scopes with impl typealias
This has been introduced in 9ecd04f628
This commit is contained in:
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
header abstract class Writer protected constructor()
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
impl typealias Writer = java.io.Writer
|
||||
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
-- Common --
|
||||
Exit code: OK
|
||||
Output:
|
||||
|
||||
-- JVM --
|
||||
Exit code: COMPILATION_ERROR
|
||||
Output:
|
||||
compiler/testData/multiplatform/regressions/incompatibleClassScopesWithImplTypeAlias/jvm.kt:3:1: error: 'impl' class 'Writer' has no implementation of 'header' class members:
|
||||
|
||||
protected constructor Writer()
|
||||
|
||||
The following declaration is incompatible because visibility is different:
|
||||
protected/*protected and package*/ constructor Writer()
|
||||
The following declaration is incompatible because number of value parameters is different:
|
||||
protected/*protected and package*/ constructor Writer(p0: Any!)
|
||||
|
||||
impl typealias Writer = java.io.Writer
|
||||
^
|
||||
Reference in New Issue
Block a user