9 lines
163 B
Haskell
9 lines
163 B
Haskell
module Errortipos where
|
|
|
|
-- Causa error de tipos
|
|
-- main = f (0, 'a')
|
|
-- Expresion corregida
|
|
main = f('a', 0)
|
|
|
|
f :: (Char, Int) -> String
|
|
f (c, i) = [c] ++ show i
|