瀏覽代碼

Don't attempt to cast TIdentTypeExpr. Fixes #334.

woollybah 7 年之前
父節點
當前提交
7429be1a87
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      expr.bmx

+ 4 - 0
expr.bmx

@@ -2450,6 +2450,10 @@ Type TIdentTypeExpr Extends TExpr
 		Return _trans.TransIdentTypeExpr( Self )
 	End Method
 
+	Method Cast:TExpr( ty:TType,castFlags:Int=0 )
+		Err "Unable to convert from Type to " + ty.ToString()
+	End Method
+
 End Type
 
 Type TIdentExpr Extends TExpr