forked from scala/scala
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove adaptation of 0-arg methods under -Xsource:3.0
Get thee to a nullary, go. Farewell -Xfuture. Ref scala/bug#8035
- Loading branch information
Showing
20 changed files
with
91 additions
and
37 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
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 |
---|---|---|
@@ -1 +0,0 @@ | ||
warning: there was one deprecation warning (since 2.11.0); re-run with -deprecation for details | ||
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// scalac: -Xfuture | ||
// scalac:-Xsource:3.0 | ||
// | ||
object Foo { | ||
List(1,2,3).toSet() | ||
|
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
/* scalac: -Xsource:3.0 */ | ||
|
||
object Fail { | ||
def nom (guard : => Boolean) (something : => Unit): Unit = { } | ||
def main(args: Array[String]): Unit = { | ||
nom { | ||
val i = 0 | ||
(i != 3) | ||
}() | ||
}(()) | ||
} | ||
} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
-language:experimental.macros | ||
-language:experimental.macros -Xsource:3.0 |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
warning: there was one deprecation warning (since 2.11.0); re-run with -deprecation for details | ||
1 | ||
2 | ||
3 | ||
|
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 |
---|---|---|
@@ -1,13 +1,12 @@ | ||
t6863.scala:38: warning: comparing values of types Unit and Unit using `==' will always yield true | ||
assert({ () => x}.apply == ()) | ||
t6863.scala:43: warning: comparing values of types Unit and Unit using `==' will always yield true | ||
assert({ () => x}.apply == u) | ||
^ | ||
t6863.scala:42: warning: comparing values of types Unit and Unit using `==' will always yield true | ||
assert({ () => x}.apply == ()) | ||
t6863.scala:47: warning: comparing values of types Unit and Unit using `==' will always yield true | ||
assert({ () => x}.apply == u) | ||
^ | ||
t6863.scala:46: warning: comparing values of types Unit and Unit using `==' will always yield true | ||
assert({ () => x}.apply == ()) | ||
t6863.scala:51: warning: comparing values of types Unit and Unit using `==' will always yield true | ||
assert({ () => x}.apply == u) | ||
^ | ||
t6863.scala:59: warning: comparing values of types Unit and Unit using `==' will always yield true | ||
assert({ () => x }.apply == ()) | ||
t6863.scala:64: warning: comparing values of types Unit and Unit using `==' will always yield true | ||
assert({ () => x }.apply == u) | ||
^ | ||
warning: there were four deprecation warnings (since 2.11.0); re-run with -deprecation for details |
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 |
---|---|---|
@@ -1 +0,0 @@ | ||
warning: there was one deprecation warning (since 2.11.0); re-run with -deprecation for details | ||
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