Fix for KT-15410: "Protected function call from public-API inline function" for protected constructor call

#KT-15410 Fixed
This commit is contained in:
Mikhael Bogdanov
2016-12-23 11:28:12 +01:00
parent f1c1fcf0fc
commit b5ec30666b
4 changed files with 35 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
open class Foo protected constructor()
inline fun foo(f: () -> Unit) = object: Foo() {}
class A : Foo() {
inline fun foo(f: () -> Unit) = <!PROTECTED_CONSTRUCTOR_NOT_IN_SUPER_CALL!>Foo<!>()
}