Make methods be available in earlier stages of analysis. Add @adhoc attribute to allow types with ad hoc generic declarations.

This commit is contained in:
Christoffer Lerno
2024-09-25 14:26:49 +02:00
parent 6f7ffbeb3c
commit da47588502
14 changed files with 150 additions and 66 deletions

View File

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

View File

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