forked from scala/scala
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Type application and operator notation could not formerly be mixed. Now they can, as the grammar has always suggested.
- Loading branch information
Showing
3 changed files
with
51 additions
and
14 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
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 @@ | ||
class A { | ||
def fn1 = List apply 1 | ||
def fn2 = List apply[Int] 2 | ||
|
||
def f1 = "f1" isInstanceOf[String] | ||
|
||
def g1 = "g1" toList | ||
def g2 = "g2" toList 2 | ||
def g3 = "g3" apply 3 | ||
|
||
def h1 = List apply[List[Int]] (List(1), List(2)) mapConserve[List[Any]] (x => x) | ||
} |