Created
March 14, 2019 20:35
-
-
Save qingwei91/407991803d273e39bf5c8ef8482909fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def typeMatch[A, B](a: A, b: B)(implicit eq: A=:=B) = () | |
| val queryString = QueryPath("my", QueryString) | |
| val queryNestedString = QueryPath("my", QueryPath("oh", QueryString)) | |
| typeMatch(queryString, queryNestedString) // compiles |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment