diff options
Diffstat (limited to 'sources/scalac/transformer/matching/BerrySethi.java')
-rw-r--r-- | sources/scalac/transformer/matching/BerrySethi.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sources/scalac/transformer/matching/BerrySethi.java b/sources/scalac/transformer/matching/BerrySethi.java index a97552702a..9e9186e1f8 100644 --- a/sources/scalac/transformer/matching/BerrySethi.java +++ b/sources/scalac/transformer/matching/BerrySethi.java @@ -1,3 +1,5 @@ +/** $Id */ + package scalac.transformer.matching ; import scalac.Unit ; @@ -365,16 +367,19 @@ class BerrySethi { this.posMap.put( pat, i ); this.labelAt.put( i, label ); if( label != Label.DefaultLabel ) { + /* if( this.labels.contains( label ) ) { switch(label) { case TreeLabel(Apply(_, Tree[] args)): if( args.length > 0 ) { - unit.error(pat.pos, "sorry, this version of scalac cannot handle this pattern correctly"); + unit.warning(pat.pos, "if this pattern in nondeterminism, it will not compile correctly"); } } } + */ this.labels.add( label ); } + } /** overriden in BindingBerrySethi |