-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
move stdlib: type_info::type_name() #2122
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks batman.
@@ -41,10 +41,15 @@ pub fn aptos_test_natives() -> NativeFunctionTable { | |||
} | |||
|
|||
#[test] | |||
fn move_unit_tests() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wtf, your file name?
@@ -18,6 +20,7 @@ module aptos_std::type_info { | |||
} | |||
|
|||
public native fun type_of<T>(): TypeInfo; | |||
public native fun full_name<T>(): string::String; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe full_path? or just path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wrwg opinion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... looks asymmetric. type_info::name_of<T>()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works for me and better than "path". originally I named it type_info::type_name()
cf856a1
to
bd3e3e7
Compare
❌ Forge test failureForge is land-blocking
|
❌ Forge test failureForge is land-blocking
|
✅ Forge test successForge is land-blocking
|
53ce80a
to
e42ddd2
Compare
✅ Forge test successForge is land-blocking
|
Description
Prepare for emitting
Test Plan
unittest
This change is