From c31d07e23f4a10cd17ac3c1da93dd1b640b9fd92 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Wed, 13 Aug 2008 23:54:09 +0200 Subject: [PATCH] Reverted bad change [506]. Added test case for remaining bug. --- dmd/mtype.h | 1 - gen/typinf.cpp | 5 ----- tests/mini/missingti.d | 9 +++++++++ 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 tests/mini/missingti.d diff --git a/dmd/mtype.h b/dmd/mtype.h index 99071d11..a9d82482 100644 --- a/dmd/mtype.h +++ b/dmd/mtype.h @@ -640,7 +640,6 @@ struct TypeClass : Type int checkBoolean(); TypeInfoDeclaration *getTypeInfoDeclaration(); int hasPointers(); - int builtinTypeInfo(); type *toCtype(); diff --git a/gen/typinf.cpp b/gen/typinf.cpp index d3028840..e44a4d05 100644 --- a/gen/typinf.cpp +++ b/gen/typinf.cpp @@ -224,11 +224,6 @@ int TypeDArray::builtinTypeInfo() return next->isTypeBasic() != NULL; } -int TypeClass::builtinTypeInfo() -{ - return 1; -} - /* ========================================================================= */ /*************************************** diff --git a/tests/mini/missingti.d b/tests/mini/missingti.d new file mode 100644 index 00000000..10c29613 --- /dev/null +++ b/tests/mini/missingti.d @@ -0,0 +1,9 @@ +class MyClass +{ +} + +void main() +{ + MyClass[] l; + l.sort; +}