carbon-lang icon indicating copy to clipboard operation
carbon-lang copied to clipboard

Function types with non-type parameter types allowed in patterns

Open dabrahams opened this issue 3 years ago • 1 comments

In the C++ implementation, I think this should fail to compile:

fn f(fnty(Int x)) => 0;
fn main -> Int { return 0 }

but it doesn't.

dabrahams avatar May 09 '21 23:05 dabrahams

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please comment or remove the inactive label. The long term label can also be added for issues which are expected to take time. This issue is labeled inactive because the last activity was over 90 days ago.

github-actions[bot] avatar Aug 08 '21 01:08 github-actions[bot]

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please comment or remove the inactive label. The long term label can also be added for issues which are expected to take time. This issue is labeled inactive because the last activity was over 90 days ago.

github-actions[bot] avatar Oct 26 '22 02:10 github-actions[bot]