diff options
author | Paul Phillips <paulp@improving.org> | 2013-09-18 07:48:57 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-09-18 12:11:05 -0700 |
commit | 1c8bbd7ec5b8859f75abfbc4e70482dede2b7007 (patch) | |
tree | bc0daf08322afb83c9e55c0e7b31c758625fb8cc /test/files/run/existential-rangepos.check | |
parent | 7f3a7a4e39642f03f3fc32467c14ea718036cf6c (diff) | |
download | scala-1c8bbd7ec5b8859f75abfbc4e70482dede2b7007.tar.gz scala-1c8bbd7ec5b8859f75abfbc4e70482dede2b7007.tar.bz2 scala-1c8bbd7ec5b8859f75abfbc4e70482dede2b7007.zip |
Position#show prints the point.
Can't ensure range position points are meaningful when we never
see them. To limit noise, only print the point when it != start.
[x:y] // point=x, start=x, end=y
[p/x:y] // point=p, start=x, end=y
I'm open to a different syntax.
Also prints NoPosition as [X] rather than [NoPosition] because
noise is for construction workers and attenders of rock concerts.
Some range position and parser tests are included so we can see
the checkfile change when the forthcoming fix happens (either an
error message improvement or a positional one.)
Diffstat (limited to 'test/files/run/existential-rangepos.check')
-rw-r--r-- | test/files/run/existential-rangepos.check | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/run/existential-rangepos.check b/test/files/run/existential-rangepos.check index 1212b60bae..6c4e86dedc 100644 --- a/test/files/run/existential-rangepos.check +++ b/test/files/run/existential-rangepos.check @@ -1,13 +1,13 @@ [[syntax trees at end of patmat]] // newSource1.scala [0:76]package [0:0]<empty> { - [0:76]abstract class A[[17:18]T[17:18]] extends [20:76][76]scala.AnyRef { + [15/0:76]abstract class A[[17:18]T[17:18]] extends [20:76][76]scala.AnyRef { [76]def <init>(): [20]A[T] = [76]{ [76][76][76]A.super.<init>(); [20]() }; - [24:51]private[this] val foo: [28]Set[_ <: T] = [47:51]null; + [28/24:51]private[this] val foo: [28]Set[_ <: T] = [47:51]null; [28]<stable> <accessor> def foo: [28]Set[_ <: T] = [28][28]A.this.foo; - [54:74]<stable> <accessor> def bar: [58]Set[_ <: T] + [58/54:74]<stable> <accessor> def bar: [58]Set[_ <: T] } } |