Skip to content

Commit

Permalink
repro case for override check failure
Browse files Browse the repository at this point in the history
  • Loading branch information
yigit committed Oct 12, 2020
1 parent d4b637c commit aa08209
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,8 @@ class CheckOverrideProcessor : AbstractTestProcessor() {
checkOverride(getY, myInterfaceX)
checkOverride(getX, myInterfaceX)
checkOverride(setY, myInterfaceY)
checkOverride(myInterfaceX, getY)
checkOverride(myInterfaceX, getX)
checkOverride(myInterfaceY, setY)
}
}
3 changes: 3 additions & 0 deletions compiler-plugin/testData/api/checkOverride.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
// JavaImpl.getY overrides MyInterface.x: false
// JavaImpl.getX overrides MyInterface.x: true
// JavaImpl.setY overrides MyInterface.y: true
// MyInterface.x overrides JavaImpl.getY: false
// MyInterface.x overrides JavaImpl.getX: false
// MyInterface.y overrides JavaImpl.setY: false
// END
// FILE: a.kt

Expand Down

0 comments on commit aa08209

Please sign in to comment.