Browse Source

Don't override interface type voidness.

woollybah 9 years ago
parent
commit
2f58c6602c
1 changed files with 4 additions and 1 deletions
  1. 4 1
      ctranslator.bmx

+ 4 - 1
ctranslator.bmx

@@ -247,13 +247,16 @@ Type TCTranslator Extends TTranslator
 			p :+ " Var"
 		End If
 		
-		If TVoidType( ty ) Or Not ty Then
+		If Not ty Then
 			If opt_issuperstrict Or isSuperStrict Then
 				Return p
 			Else
 				Return "%" + p
 			End If
 		End If
+		If TVoidType( ty ) Then
+			Return p
+		End If
 		If TByteType( ty ) Return "@" + p
 		If TShortType( ty ) Return "@@" + p
 		If TIntType( ty ) Return "%" + p