diff options
Diffstat (limited to 'sources/scalac/transformer/UnCurry.java')
-rw-r--r-- | sources/scalac/transformer/UnCurry.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scalac/transformer/UnCurry.java b/sources/scalac/transformer/UnCurry.java index ce5ad8035c..bdc0072adc 100644 --- a/sources/scalac/transformer/UnCurry.java +++ b/sources/scalac/transformer/UnCurry.java @@ -177,7 +177,7 @@ public class UnCurry extends OwnerTransformer if (name == TypeNames.WILDCARD_STAR) { unit.error(tree.pos, " argument does not correspond to `*'-parameter"); return tree; - } else if (TreeInfo.isWildcardPattern(tree)) { + } else if (tree.symbol() == global.definitions.PATTERN_WILDCARD) { return tree; } else { return applyDef(super.transform(tree)); |