Resolve type aliases based on inferred types.
Before this commit, we would always show the 'declared form' of type aliases, with their generic, non-instantiated parameters. This now tries to unify the annotation with the underlying inferred type to provide even better alias pretty printing.
This commit is contained in:
@@ -11,6 +11,7 @@ Schema {
|
||||
module: "test_module",
|
||||
name: "Rational",
|
||||
args: [],
|
||||
alias: None,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -19,9 +19,11 @@ Schema {
|
||||
module: "test_module",
|
||||
name: "UUID",
|
||||
args: [],
|
||||
alias: None,
|
||||
},
|
||||
},
|
||||
},
|
||||
alias: None,
|
||||
},
|
||||
Var {
|
||||
tipo: RefCell {
|
||||
@@ -31,11 +33,14 @@ Schema {
|
||||
module: "",
|
||||
name: "Int",
|
||||
args: [],
|
||||
alias: None,
|
||||
},
|
||||
},
|
||||
},
|
||||
alias: None,
|
||||
},
|
||||
],
|
||||
alias: None,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user