This caused criticals like:
vala_typesymbol_is_subtype_of: assertion 'self != NULL' failed
semantic/class-too-few-type-arguments.test \
semantic/class-too-many-type-arguments.test \
semantic/constant-extern.test \
+ semantic/constant-pointer.test \
semantic/constant-value.test \
semantic/constant-value-missing.test \
semantic/constant-value-type.test \
--- /dev/null
+Invalid Code
+
+const int* FOO = 0;
+
+void main () {
+}
bool check_const_type (DataType type, CodeContext context) {
if (type is ValueType) {
return true;
+ } else if (type is VoidType || type is PointerType) {
+ return false;
} else if (type is ArrayType) {
unowned ArrayType array_type = (ArrayType) type;
return check_const_type (array_type.element_type, context);