mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Fix issues from rebase on origin/trunk
This commit is contained in:
parent
551d5bc92b
commit
5e130d4726
3 changed files with 2 additions and 14 deletions
|
@ -170,7 +170,7 @@ fn can_tag<'a>(
|
||||||
tag_types.push((symbol, arg_types));
|
tag_types.push((symbol, arg_types));
|
||||||
}
|
}
|
||||||
Tag::Private { name, args } => {
|
Tag::Private { name, args } => {
|
||||||
let symbol = Symbol::from_private_tag(&env.home, name.value);
|
let symbol = Symbol::from_private_tag(env.home.as_str(), name.value);
|
||||||
|
|
||||||
let arg_types = args
|
let arg_types = args
|
||||||
.iter()
|
.iter()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use crate::can::ident::{Lowercase, ModuleName, Uppercase};
|
use crate::can::ident::{Lowercase, ModuleName, Uppercase};
|
||||||
use crate::can::symbol::Symbol;
|
use crate::can::symbol::Symbol;
|
||||||
use crate::collections::{relative_complement, union, MutMap};
|
use crate::collections::{relative_complement, union, ImMap, MutMap};
|
||||||
use crate::subs::Content::{self, *};
|
use crate::subs::Content::{self, *};
|
||||||
use crate::subs::{Descriptor, FlatType, Mark, OptVariable, Subs, Variable};
|
use crate::subs::{Descriptor, FlatType, Mark, OptVariable, Subs, Variable};
|
||||||
use crate::types::RecordFieldLabel;
|
use crate::types::RecordFieldLabel;
|
||||||
|
|
|
@ -986,18 +986,6 @@ mod test_infer_uniq {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn record_field_access() {
|
|
||||||
infer_eq(
|
|
||||||
indoc!(
|
|
||||||
r#"
|
|
||||||
\rec -> rec.left
|
|
||||||
"#
|
|
||||||
),
|
|
||||||
"Attr.Attr * (Attr.Attr a { left : (Attr.Attr a b) }* -> Attr.Attr a b)",
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn record_field_accessor_function() {
|
fn record_field_accessor_function() {
|
||||||
infer_eq(
|
infer_eq(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue