-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: emit as extension method if member of implicit class with val…
… in constructor (#6190) * bugfix: emit as extension method if member of implicit class with val in constructor * account for refined types * delete commented out code
- Loading branch information
1 parent
151ba43
commit b2b0ac5
Showing
3 changed files
with
102 additions
and
25 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
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 tests | ||
|
||
package a | ||
object O { | ||
trait Foo { | ||
type T | ||
} | ||
|
||
implicit class A(val foo: Foo { type T = Int }) { | ||
def get: Int = 1 | ||
} | ||
} |
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