mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
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:
@@ -1,6 +1,6 @@
|
||||
module std::collections::maybe(<Type>);
|
||||
|
||||
struct Maybe
|
||||
struct Maybe @adhoc
|
||||
{
|
||||
Type value;
|
||||
bool has_value;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user