Fix chained attribute if statements with static strings (#4721)
This commit is contained in:
1 parent
f2b1c6d97f
commit
c709c415c9
2 files changed
+28
-11
No files matched your search
@@ -28,5 +28,20 @@ fn partially_formatted_conditional_attribute() {
|
||||
input {
|
||||
type: if true { opt.to_string() } else if true { "" } else { "text with {width}" },
|
||||
}
|
||||
input {
|
||||
type: if true { "one" } else if true { "two" } else { "three" },
|
||||
}
|
||||
input {
|
||||
type: if true { "one" } else if true { "two" } else if true { "three" } else { opt },
|
||||
}
|
||||
input {
|
||||
type: if true { "one" } else if true { if false { "true" } else { "false" } } else { "three" },
|
||||
}
|
||||
input {
|
||||
type: if true { "one".to_string() },
|
||||
}
|
||||
input {
|
||||
type: if true { "one" },
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user