Fix bug in type desugaring.

This commit is contained in:
Dan Katz
2025-04-10 15:26:47 -04:00
parent 0504407a85
commit f70f4ab8ea
3 changed files with 2 additions and 3 deletions

View File

@@ -214,13 +214,11 @@ struct S{};
using Alias1 = int;
constexpr Alias1 a1 = 3;
static_assert(type_of(^^a1) != ^^const Alias1);
static_assert(type_of(^^a1) == ^^const int);
static_assert(type_of(value_of(^^a1)) == ^^int);
using Alias2 = S;
constexpr Alias2 a2 {};
static_assert(type_of(^^a2) != ^^const Alias2);
static_assert(type_of(^^a2) == ^^const S);
static_assert(type_of(value_of(^^a2)) == ^^const S);