Browse Source

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

woollybah 7 năm trước cách đây
mục cha
commit
7429be1a87
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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