I noticed while playing with the "booish" tool that
"""
i as short
print i.MaxValue
"""
didn't work, failing with the following error: "ERROR: Language feature still not implemented: 'Literal: Int16'."
After some investigation, I discovered that short/ushort/Int16/UInt16 was not implemented as a case in Boo.Lang.Compiler/Steps/EmitAssembly.cs.
I added the following two cases to my copy of EmitAssembly.cs:
case TypeCode.Int16:
{
_il.Emit(OpCodes.Ldc_I4, (int)(short)value);
break;
}
case TypeCode.UInt16:
{
_il.Emit(OpCodes.Ldc_I4, (int)(ushort)value);
break;
}
These cases seemed to do the trick, as I can now use shorts in booish and access their static methods. I'm not sure why this was left out, but I wanted to thank all of people involved in this project for working to make Boo a very useful tool!
Finally, I apologize for not submitting a proper diff 