summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-07-17 12:26:12 +0000
committerpaltherr <paltherr@epfl.ch>2003-07-17 12:26:12 +0000
commitd4945a881b5b25ededfc990ac9a50dc288690f49 (patch)
treecba25fa4b90694ef6ce1306d55c47c47c024513d /sources
parent8f1ab98b77438672519ecd41bd068d7145c6bda2 (diff)
downloadscala-d4945a881b5b25ededfc990ac9a50dc288690f49.tar.gz
scala-d4945a881b5b25ededfc990ac9a50dc288690f49.tar.bz2
scala-d4945a881b5b25ededfc990ac9a50dc288690f49.zip
- Fixed getMainMethodType for the new Type.isSa...
- Fixed getMainMethodType for the new Type.isSameAs, Type.Equals, ...
Diffstat (limited to 'sources')
-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);
}