diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-01-21 00:50:15 -0800 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-01-21 00:50:15 -0800 |
commit | 26387cacaa8f78105419044fc33acc8fd8343662 (patch) | |
tree | 15fe66051230bb183786d945c65270cb49049cd6 /test | |
parent | af89c3d258c98351868e5ed5acee97e5b2268452 (diff) | |
parent | 07ff3a99b75174c4e4a4e52348b34aa0b68f51b1 (diff) | |
download | scala-26387cacaa8f78105419044fc33acc8fd8343662.tar.gz scala-26387cacaa8f78105419044fc33acc8fd8343662.tar.bz2 scala-26387cacaa8f78105419044fc33acc8fd8343662.zip |
Merge pull request #3368 from retronym/ticket/8151
SI-8151 Remove -Yself-in-annots and associated implementation
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/constrained-types.check | 10 | ||||
-rw-r--r-- | test/files/run/constrained-types.scala | 6 |
2 files changed, 0 insertions, 16 deletions
diff --git a/test/files/run/constrained-types.check b/test/files/run/constrained-types.check index d965d8a2ff..9a106785a1 100644 --- a/test/files/run/constrained-types.check +++ b/test/files/run/constrained-types.check @@ -149,13 +149,3 @@ scala> val x = 3 : Int @Annot(e+f+g+h) // should have a graceful error message ^ scala> - -scala> class Where(condition: Boolean) extends annotation.Annotation -defined class Where - -scala> - -scala> val x : Int @Where(self > 0 && self < 100) = 3 -x: Int @Where(self.>(0).&&(self.<(100))) = 3 - -scala> diff --git a/test/files/run/constrained-types.scala b/test/files/run/constrained-types.scala index 91bd856d00..7ec8f93d38 100644 --- a/test/files/run/constrained-types.scala +++ b/test/files/run/constrained-types.scala @@ -72,16 +72,10 @@ object A { val x = "hello" : String @ rep } val y = a.x // should drop the annotation val x = 3 : Int @Annot(e+f+g+h) // should have a graceful error message - -class Where(condition: Boolean) extends annotation.Annotation - -val x : Int @Where(self > 0 && self < 100) = 3 - """ override def transformSettings(s: Settings): Settings = { s.Xexperimental.value = true - s.selfInAnnots.value = true s.deprecation.value = true // when running that compiler, give it a scala-library to the classpath s.classpath.value = sys.props("java.class.path") |