2ecba6ac39
This directive anyway does not make test run twice with OI, and with NI It only once run the test with specific settings (// LANGUAGE) and ignores irrelevant (OI or NI tags)
21 lines
352 B
Kotlin
Vendored
21 lines
352 B
Kotlin
Vendored
// !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() = <!PROTECTED_CONSTRUCTOR_NOT_IN_SUPER_CALL!>GA<!><Any>() // Should be error
|
|
}
|
|
}
|
|
|
|
fun main(args: Array<String>) {
|
|
C.bar()
|
|
} |