From d4945a881b5b25ededfc990ac9a50dc288690f49 Mon Sep 17 00:00:00 2001 From: paltherr Date: Thu, 17 Jul 2003 12:26:12 +0000 Subject: - Fixed getMainMethodType for the new Type.isSa... - Fixed getMainMethodType for the new Type.isSameAs, Type.Equals, ... --- sources/scala/tools/scalai/Interpreter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3