mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Proper enhancement for type parameters
This commit is contained in:
committed by
Denis Zharkov
parent
04aee291b9
commit
8c78739983
@@ -9,6 +9,6 @@ public interface TypeParamOfClass {
|
||||
|
||||
public interface Super</*0*/ T> {
|
||||
public abstract fun dummy(): kotlin.Unit
|
||||
org.jetbrains.annotations.NotNull() public abstract fun foo(): T!
|
||||
org.jetbrains.annotations.NotNull() public abstract fun foo(): T
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,6 @@ public interface TypeParamOfClassSubstituted {
|
||||
|
||||
public interface Super</*0*/ T> {
|
||||
public abstract fun dummy(): kotlin.Unit
|
||||
org.jetbrains.annotations.NotNull() public abstract fun foo(): T!
|
||||
org.jetbrains.annotations.NotNull() public abstract fun foo(): T
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,11 +4,11 @@ public interface TypeParamOfFun {
|
||||
|
||||
public interface Sub : test.TypeParamOfFun.Super {
|
||||
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
|
||||
public abstract override /*1*/ fun </*0*/ E> foo(): E!
|
||||
public abstract override /*1*/ fun </*0*/ E> foo(): E
|
||||
}
|
||||
|
||||
public interface Super {
|
||||
public abstract fun dummy(): kotlin.Unit
|
||||
org.jetbrains.annotations.NotNull() public abstract fun </*0*/ T> foo(): T!
|
||||
org.jetbrains.annotations.NotNull() public abstract fun </*0*/ T> foo(): T
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user