cli: write composed specialization identities iteratively
This commit is contained in:
1 parent
f5e2af15e8
commit
d98ddbc073
7 files changed
+284
-37
No files matched your search
@@ -0,0 +1,8 @@
|
||||
// expect: reject E7006
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md §15.3
|
||||
// Substitution composes argument depth across active specializations.
|
||||
// The fixed expansion guard must reject before native stack exhaustion.
|
||||
module test.composed_growth
|
||||
fn grow<T>() -> void effects [] { grow::<[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[T; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]>(); }
|
||||
fn main() -> void effects [] { grow::<u8>(); }
|
||||
@@ -0,0 +1,8 @@
|
||||
// expect: reject E7006
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md §15.3
|
||||
// Substitution composes argument depth across active specializations.
|
||||
// The fixed expansion guard must reject before native stack exhaustion.
|
||||
module test.composed_growth
|
||||
fn grow<T>() -> void effects [] { grow::<[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[T; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]>(); }
|
||||
fn main() -> void effects [] { grow::<u8>(); }
|
||||
Reference in new issue
Block a user