Example #1
0
 public VarDeclarationValue(SourceCodePosition pos, BTypeValue t, string id, LiteralValue v)
     : base(pos, t, id, v)
 {
     if (!v.GetBType().IsImplicitCastableTo(t))
     {
         throw new ImplicitCastException(pos, v.GetBType(), t);
     }
 }
Example #2
0
 public VarDeclarationValue(SourceCodePosition pos, BTypeValue t, string id)
     : base(pos, t, id, null)
 {
 }