Self-types marked as unsupported

This commit is contained in:
Andrey Breslav
2014-12-19 20:31:30 +03:00
parent f8dc0d028d
commit 633a4aa8f2
5 changed files with 32 additions and 2 deletions
@@ -0,0 +1,8 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun foo(f: <!UNSUPPORTED!>This<!>) {}
trait C<T: C<<!UNSUPPORTED!>This<!>>> {
val x: <!UNSUPPORTED!>This<!>
val y: <!UNSUPPORTED!>This<!>?
}
@@ -0,0 +1,11 @@
package
internal fun foo(/*0*/ f: [ERROR : This]): kotlin.Unit
internal trait C</*0*/ T : C<[ERROR : This]>> {
internal abstract val x: [ERROR : This]
internal abstract val y: [ERROR : This]?
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}