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; +}