diff options
author | Simon Ochsenreither <simon@ochsenreither.de> | 2013-09-08 16:38:52 +0200 |
---|---|---|
committer | Simon Ochsenreither <simon@ochsenreither.de> | 2013-10-24 00:52:01 +0200 |
commit | bc475036c4cae5e9534ee3f9985e4e7a848e4b67 (patch) | |
tree | 8e8009cc5ead2bc6b320da8827753f30916b9cad /test/files/neg/t7605-deprecation.scala | |
parent | 951422163ab8fc47caa60acb66b670a371b5489e (diff) | |
download | scala-bc475036c4cae5e9534ee3f9985e4e7a848e4b67.tar.gz scala-bc475036c4cae5e9534ee3f9985e4e7a848e4b67.tar.bz2 scala-bc475036c4cae5e9534ee3f9985e4e7a848e4b67.zip |
SI-7605 Deprecate procedure syntax
This commit covers three cases:
- constructor definitions (def this {...})
- concrete method definitions (def foo {...})
- abstract method declarations (def foo)
The deprecation is currently hidden behind -Xfuture pending IDE support
for migrating users from procedures to methods.
Diffstat (limited to 'test/files/neg/t7605-deprecation.scala')
-rw-r--r-- | test/files/neg/t7605-deprecation.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/neg/t7605-deprecation.scala b/test/files/neg/t7605-deprecation.scala new file mode 100644 index 0000000000..4a7dcd26d6 --- /dev/null +++ b/test/files/neg/t7605-deprecation.scala @@ -0,0 +1,5 @@ +abstract class Foo { + def this(i: Int) { this() } + def bar {} + def baz +}
\ No newline at end of file |