Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SI-6551: don't insert apply call in polymorphic expression.
Don't rewrite an explicit apply method to dynamic polytypes.
- Loading branch information
Showing
2 changed files
with
18 additions
and
4 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,13 @@ | ||
import language.dynamics | ||
|
||
object Test { | ||
def main(args: Array[String]) { | ||
class Lenser[T] extends Dynamic { | ||
def selectDynamic(propName: String) = ??? | ||
} | ||
|
||
def lens[T] = new Lenser[T] | ||
|
||
val qq = lens[String] | ||
} | ||
} |