changeset 132:c494af1dba80

Fixes for dmd 2.037
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Fri, 10 Sep 2010 19:14:09 +0100
parents 206db751bd4c
children e8a741997ccf 9d194c848e3a
files dmd/Parser.d dmd/TypeFunction.d
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dmd/Parser.d	Fri Sep 10 00:27:37 2010 +0100
+++ b/dmd/Parser.d	Fri Sep 10 19:14:09 2010 +0100
@@ -3293,7 +3293,7 @@
 				condition = parseStaticIfCondition();
 				goto Lcondition;
 			}
-	        if (t.value == TOK.TOKstruct || t.value == TOK.TOKunion || t.value == TOK.TOKclass)
+	        if (tt.value == TOK.TOKstruct || tt.value == TOK.TOKunion || tt.value == TOK.TOKclass)
 	        {
 		        nextToken();
 		        auto a = parseBlock();
--- a/dmd/TypeFunction.d	Fri Sep 10 00:27:37 2010 +0100
+++ b/dmd/TypeFunction.d	Fri Sep 10 19:14:09 2010 +0100
@@ -322,6 +322,7 @@
 	            case TRUST.TRUSTsafe:
 		            buf.writestring("Nd");
 		            break;
+                default:
 	        }
 		}
 		// Write argument types