alpha
Login
or
Join now
nandi.uk
/
gleam
Star
2
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Fork of daniellemaywood.uk/gleam — Wasm codegen work
Star
2
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
Add failing test case
author
frakappa
committer
Louis Pilfold
date
2 days ago
(Jul 25, 2026, 11:41 AM +0100)
commit
e98ec684
e98ec6849eb398b88a98ceb0675e0108da42af1e
parent
a8734d21
a8734d212614b6dfc096a1b64750650954cd4466
+20
1 changed file
Expand all
Collapse all
Unified
Split
compiler-core
src
type_
tests
use_.rs
+20
compiler-core/src/type_/tests/use_.rs
View file
Reviewed
···
496
496
"#
497
497
);
498
498
}
499
499
+
500
500
+
#[test]
501
501
+
fn discard_pattern_type_annotation_is_checked() {
502
502
+
assert_module_error!(
503
503
+
r#"
504
504
+
pub type Woo(a) {
505
505
+
Woo
506
506
+
}
507
507
+
508
508
+
pub fn wibble(_f: fn(Woo(a)) -> Nil) -> Woo(a) {
509
509
+
Woo
510
510
+
}
511
511
+
512
512
+
pub fn main() -> Woo(Int) {
513
513
+
use _: Woo(String) <- wibble()
514
514
+
Nil
515
515
+
}
516
516
+
"#
517
517
+
);
518
518
+
}