summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sources/scala/tools/scalai/Interpreter.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/scala/tools/scalai/Interpreter.java b/sources/scala/tools/scalai/Interpreter.java
index 40aa1efa81..2bf478216f 100644
--- a/sources/scala/tools/scalai/Interpreter.java
+++ b/sources/scala/tools/scalai/Interpreter.java
@@ -14,6 +14,7 @@ import scalac.symtab.Definitions;
import scalac.symtab.Symbol;
import scalac.symtab.TermSymbol;
import scalac.symtab.Type;
+import scalac.symtab.Modifiers;
import scalac.util.Name;
import scala.runtime.InterpreterSupport;
@@ -146,7 +147,8 @@ public class Interpreter {
Type result = definitions.UNIT_TYPE;
if (erased) argument = argument.erasure();
if (erased) result = result.fullErasure();
- Symbol formal = new TermSymbol(0, ARGS_N, null, 0).setInfo(argument);
+ Symbol formal = new TermSymbol(0, ARGS_N, null, Modifiers.PARAM);
+ formal.setInfo(argument);
return Type.MethodType(new Symbol[] {formal}, result);
}