diff options
author | Paul Phillips <paulp@improving.org> | 2009-09-03 20:55:35 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-09-03 20:55:35 +0000 |
commit | 7f8a733c0d3e0e70797db043e30be0ce8cb41ff3 (patch) | |
tree | 9018b014517abd58f043f818dda451df0d1672c4 /src | |
parent | 8e498fed37f541e392e0359a72ec00f45f0d00da (diff) | |
download | scala-7f8a733c0d3e0e70797db043e30be0ce8cb41ff3.tar.gz scala-7f8a733c0d3e0e70797db043e30be0ce8cb41ff3.tar.bz2 scala-7f8a733c0d3e0e70797db043e30be0ce8cb41ff3.zip |
Getting docs.comp building again.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala b/src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala index 360baf0a8c..a94d4c100a 100644 --- a/src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala +++ b/src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala @@ -494,7 +494,7 @@ abstract class GenMSIL extends SubComponent { if (settings.debug.value) log("auto-generating cloneable method for " + sym) val attrs: Short = (MethodAttributes.Public | MethodAttributes.Virtual | - MethodAttributes.HideBySig) + MethodAttributes.HideBySig).toShort val cloneMethod = tBuilder.DefineMethod("Clone", attrs, MOBJECT, MsilType.EmptyTypes) val clCode = cloneMethod.GetILGenerator() @@ -2212,8 +2212,8 @@ abstract class GenMSIL extends SubComponent { // CHECK: verify if getMethodName is better than msilName val mirrorMethod = mirrorTypeBuilder.DefineMethod(getMethodName(m), - MethodAttributes.Public | - MethodAttributes.Static, + (MethodAttributes.Public | + MethodAttributes.Static).toShort, msilType(m.tpe.resultType), paramTypes) @@ -2256,7 +2256,7 @@ abstract class GenMSIL extends SubComponent { val mFunctionType: MsilType = msilType(functionType) val anonfunField: FieldBuilder = delegateCallers.DefineField( "$anonfunField$$" + nbDelegateCallers, mFunctionType, - FieldAttributes.InitOnly | FieldAttributes.Public | FieldAttributes.Static) + (FieldAttributes.InitOnly | FieldAttributes.Public | FieldAttributes.Static).toShort) mcode.Emit(OpCodes.Stsfld, anonfunField) @@ -2267,7 +2267,7 @@ abstract class GenMSIL extends SubComponent { } val caller: MethodBuilder = delegateCallers.DefineMethod( "$delegateCaller$$" + nbDelegateCallers, - MethodAttributes.Final | MethodAttributes.Public | MethodAttributes.Static, + (MethodAttributes.Final | MethodAttributes.Public | MethodAttributes.Static).toShort, msilType(returnType), (params map (_.tpe)).map(msilType).toArray) for (i <- 0 until params.length) caller.DefineParameter(i, ParameterAttributes.None, "arg" + i) // FIXME: use name of parameter symbol |