[FIR] Implement PROTECTED_CONSTRUCTOR_NOT_IN_SUPER_CALL
^KT-59382 Fixed
This commit is contained in:
committed by
Space Team
parent
00fb927624
commit
4bba93f633
@@ -1,21 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// FILE: GA.kt
|
||||
|
||||
package test.x
|
||||
|
||||
open class GA<T> protected constructor()
|
||||
|
||||
// FILE: Main.kt
|
||||
package test
|
||||
|
||||
import test.x.GA
|
||||
|
||||
class C : GA<Any>() {
|
||||
companion object {
|
||||
fun bar() = GA<Any>() // Should be error
|
||||
}
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
C.bar()
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// FILE: GA.kt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user