Improve ordering of method registration to support adding methods to generic modules with method constraints #1746

This commit is contained in:
Christoffer Lerno
2024-12-31 18:15:38 +01:00
parent 5e32c8a828
commit c0dcae4f1d
9 changed files with 80 additions and 8 deletions

View File

@@ -0,0 +1,19 @@
module test;
def Bob = Test(<any>);
fn void Bob.crash(&self) {}
fn int main()
{
Test(<any>) foo;
return 0;
}
<*
@require $defined(String.hash)
*>
module test::generic(<Some_Type>);
enum Test
{
ABC
}