예제 #1
0
파일: TEVar.cs 프로젝트: takuto-h/omicron
 public IType Eval(ITypeEnv typeEnv)
 {
     IType result;
     if (!typeEnv.TryGetValue(mTypeVarName, out result))
     {
         throw new InvalidOperationException(
             string.Format("unbound type variable: {0}", mTypeVarName)
         );
     }
     return result;
 }