-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #326 from xeno-by/topic/100
Partial support for super accessors (fix #100)
- Loading branch information
Showing
3 changed files
with
53 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package ticket100 | ||
|
||
trait T1 { | ||
def x: Int = ??? | ||
} | ||
|
||
trait T2 extends T1 { | ||
private def super$x(self: T1): Int = ??? | ||
def y: Int = super.x | ||
} | ||
|
||
trait HasRemoteInfo extends Exception { | ||
private def super$getMessage(self: java.lang.Throwable)(): String = ??? | ||
def exceptionMessage(): String = super.getMessage() | ||
} |
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,5 @@ | ||
package ticket100 | ||
|
||
class C extends T2 | ||
|
||
class E extends Exception with HasRemoteInfo |
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