diff options
author | Stavros Aronis <[email protected]> | 2011-11-30 20:19:31 +0100 |
---|---|---|
committer | Stavros Aronis <[email protected]> | 2011-12-01 11:55:09 +0100 |
commit | 9949c1e03cdde87548371d5a9b53a997e3088dc6 (patch) | |
tree | ae512f43e1e7fb0b0160b641ff586579bd93e965 /lib/dialyzer/src | |
parent | 0290bed50ccbba067619c5829b0a090a8a60a2ff (diff) | |
download | otp-9949c1e03cdde87548371d5a9b53a997e3088dc6.tar.gz otp-9949c1e03cdde87548371d5a9b53a997e3088dc6.tar.bz2 otp-9949c1e03cdde87548371d5a9b53a997e3088dc6.zip |
Fix crash in Dialyzer
Variable substitution was not generalizing any unknown variables.
Diffstat (limited to 'lib/dialyzer/src')
-rw-r--r-- | lib/dialyzer/src/dialyzer_typesig.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/dialyzer/src/dialyzer_typesig.erl b/lib/dialyzer/src/dialyzer_typesig.erl index 92868b6878..4268814859 100644 --- a/lib/dialyzer/src/dialyzer_typesig.erl +++ b/lib/dialyzer/src/dialyzer_typesig.erl @@ -2046,8 +2046,7 @@ lookup_type(Key, Map) -> %% case cerl:is_literal(Key) of %% true -> t_from_term(cerl:concrete(Key)); %% false -> - Subst = t_subst(Key, Map), - t_sup(Subst, Subst). + t_subst(Key, Map). %% end. mk_var(Var) -> |