diff --git a/source/parse.h b/source/parse.h index c3a9fde2b9..0540cc1965 100644 --- a/source/parse.h +++ b/source/parse.h @@ -6003,6 +6003,10 @@ class parser } return {}; } + if (curr().type() == lexeme::Multiply) { + error("'T*' is not a valid Cpp2 type; use '*T' for a pointer instead", false); + return {}; + } return n; }