Deprecate @adhoc, allow non-nested ad hoc generic types.

This commit is contained in:
Christoffer Lerno
2024-10-08 11:02:10 +02:00
parent 19a96acac8
commit e3ea1d5049
10 changed files with 26 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
module std::collections::maybe(<Type>);
struct Maybe @adhoc
struct Maybe
{
Type value;
bool has_value;

View File

@@ -1,6 +1,6 @@
module std::collections::tuple(<Type1, Type2>);
struct Tuple @adhoc
struct Tuple
{
Type1 first;
Type2 second;
@@ -8,7 +8,7 @@ struct Tuple @adhoc
module std::collections::triple(<Type1, Type2, Type3>);
struct Triple @adhoc
struct Triple
{
Type1 first;
Type2 second;