Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing signature when overriding with erased signature.
EA-43482 - ISE: JavaFunctionResolver.checkFunctionsOverrideCorrectly
- Loading branch information
Evgeny Gerashchenko
authored and
Evgeny Gerashchenko
committed
Feb 19, 2013
1 parent
cd06bde
commit 48113f0
Showing
6 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
.../testData/loadJava/kotlinSignature/propagation/parameter/OverrideWithErasedParameter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package test; | ||
|
||
public interface OverrideWithErasedParameter { | ||
|
||
public interface Super<T> { | ||
void foo(T t); | ||
} | ||
|
||
public interface Sub<T> extends Super<T> { | ||
void foo(Object o); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...er/testData/loadJava/kotlinSignature/propagation/parameter/OverrideWithErasedParameter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package test | ||
|
||
public trait OverrideWithErasedParameter: Object { | ||
|
||
public trait Super<T>: Object { | ||
public fun foo(p0: T?) | ||
} | ||
|
||
public trait Sub<T>: Super<T> { | ||
override fun foo(p0: T?) | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...r/testData/loadJava/kotlinSignature/propagation/parameter/OverrideWithErasedParameter.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package test | ||
|
||
public trait OverrideWithErasedParameter : java.lang.Object { | ||
|
||
public trait Sub</*0*/ T> : test.OverrideWithErasedParameter.Super<T> { | ||
public abstract override /*1*/ fun foo(/*0*/ p0 : T?) : Unit | ||
} | ||
|
||
public trait Super</*0*/ T> : java.lang.Object { | ||
public abstract fun foo(/*0*/ p0 : T?) : Unit | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters