-
-
Notifications
You must be signed in to change notification settings - Fork 122
Closed
GulajavaMinistudio/atom
#354Description
When we define an enum, its name has class="syntax--support syntax--type"
:
enum MyEnum {
Int(i64),
Float(f64),
}
When we use the enum, both in return position and in a function body, the name again has class="syntax--support syntax--type"
:
fn foo() -> MyEnum {
MyEnum::Int(42)
}
When we import a variant of an enum, the enum name yet again has class="syntax--support syntax--type"
:
use super::MyEnum::Int;
BUT when we glob import from an enum, the enum name has class="syntax--entity syntax--name syntax--class"
:
use super::MyEnum::*;
Metadata
Metadata
Assignees
Labels
No labels