changeset 508:af9bdd69a7ec

Reverted bad change [506]. Added test case for remaining bug.
author Christian Kamm <kamm incasoftware de>
date Wed, 13 Aug 2008 23:54:09 +0200
parents 39dbe48d3fe2
children 337554fd34f1
files dmd/mtype.h gen/typinf.cpp tests/mini/missingti.d
diffstat 3 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/dmd/mtype.h	Wed Aug 13 22:31:46 2008 +0200
+++ b/dmd/mtype.h	Wed Aug 13 23:54:09 2008 +0200
@@ -640,7 +640,6 @@
     int checkBoolean();
     TypeInfoDeclaration *getTypeInfoDeclaration();
     int hasPointers();
-    int builtinTypeInfo();
 
     type *toCtype();
 
--- a/gen/typinf.cpp	Wed Aug 13 22:31:46 2008 +0200
+++ b/gen/typinf.cpp	Wed Aug 13 23:54:09 2008 +0200
@@ -224,11 +224,6 @@
     return next->isTypeBasic() != NULL;
 }
 
-int TypeClass::builtinTypeInfo()
-{
-    return 1;
-}
-
 /* ========================================================================= */
 
 /***************************************
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/mini/missingti.d	Wed Aug 13 23:54:09 2008 +0200
@@ -0,0 +1,9 @@
+class MyClass
+{
+}
+
+void main()
+{
+  MyClass[] l;
+  l.sort;
+}