Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

Minor cleanup of FastTypeTag changes to ensure all tag logic goes thr… #405

Merged
merged 1 commit into from
Apr 13, 2016

Conversation

jsuereth
Copy link
Contributor

…ough new macro.

Follow on from previous.

Review by @phaller or @eed3si9n

@@ -54,34 +54,34 @@ class TestScalaSymbols extends FunSuite {

test("fieldTypesWithTypeArgs") {
assert(Compat.varTypes[ParentTag.Foo[String, Int]].toSet == Set(
"scala.Tuple2[java.lang.String,scala.Int]", "scala.Int"
"(String, Int)", "Int"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like the above representation scala.Tuple2[java.lang.String,scala.Int] is more accurate than (String, Int). Is this happening because you're now using toString of the type implementation? I'm not sure if this human-friendly display name should be taken seriously.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is literally just a test. The macro is ONLY used to test that symbols are pulled out.

Not meant to be human friendly, so no, it's not meant to be taken seriously. It's only so we can test if things inside the macro are working.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. varTypes is used only for your tests.

@eed3si9n eed3si9n merged commit 6a20b52 into 0.11.x Apr 13, 2016
@eed3si9n eed3si9n deleted the wip/cleanup-tag-key-macro-methods branch April 13, 2016 12:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants