@@ -217,6 +217,21 @@ main =
217217 Just $ SignatureHelp [SignatureInformation " f :: forall a b. Eq a => a -> Num b => b -> b" Nothing (Just [ParameterInformation (InR (25 ,26 )) Nothing , ParameterInformation (InR (39 ,40 )) Nothing ]) (Just (InL 1 )), SignatureInformation " f :: Integer -> Num Bool => Bool -> Bool" Nothing (Just [ParameterInformation (InR (5 ,12 )) Nothing , ParameterInformation (InR (28 ,32 )) Nothing ]) (Just (InL 1 ))] (Just 0 ) (Just (InL 1 )),
218218 Just $ SignatureHelp [SignatureInformation " f :: forall a b. Eq a => a -> Num b => b -> b" Nothing (Just [ParameterInformation (InR (25 ,26 )) Nothing , ParameterInformation (InR (39 ,40 )) Nothing ]) (Just (InL 0 )), SignatureInformation " f :: Bool -> Num Integer => Integer -> Integer" Nothing (Just [ParameterInformation (InR (5 ,9 )) Nothing , ParameterInformation (InR (28 ,35 )) Nothing ]) (Just (InL 0 ))] (Just 0 ) (Just (InL 0 )),
219219 Just $ SignatureHelp [SignatureInformation " f :: forall a b. Eq a => a -> Num b => b -> b" Nothing (Just [ParameterInformation (InR (25 ,26 )) Nothing , ParameterInformation (InR (39 ,40 )) Nothing ]) (Just (InL 0 )), SignatureInformation " f :: Integer -> Num Integer => Integer -> Integer" Nothing (Just [ParameterInformation (InR (5 ,12 )) Nothing , ParameterInformation (InR (31 ,38 )) Nothing ]) (Just (InL 0 ))] (Just 0 ) (Just (InL 0 ))
220+ ],
221+ mkTest
222+ " => in argument"
223+ [trimming |
224+ f :: Eq a => a -> (Num b => b -> b) -> a
225+ f = _
226+ x = f 1
227+ ^ ^
228+ y = f 1 negate
229+ ^ ^
230+ |]
231+ [ Nothing ,
232+ Just $ SignatureHelp [SignatureInformation " f :: forall a b. Eq a => a -> (Num b => b -> b) -> a" Nothing (Just [ParameterInformation (InR (25 ,26 )) Nothing , ParameterInformation (InR (31 ,46 )) Nothing ]) (Just (InL 0 )), SignatureInformation " f :: Integer -> (Num b => b -> b) -> Integer" Nothing (Just [ParameterInformation (InR (5 ,12 )) Nothing , ParameterInformation (InR (17 ,32 )) Nothing ]) (Just (InL 0 ))] (Just 0 ) (Just (InL 0 )),
233+ Just $ SignatureHelp [SignatureInformation " f :: forall a b. Eq a => a -> (Num b => b -> b) -> a" Nothing (Just [ParameterInformation (InR (25 ,26 )) Nothing , ParameterInformation (InR (31 ,46 )) Nothing ]) (Just (InL 0 )), SignatureInformation " f :: Integer -> (Num Any => Any -> Any) -> Integer" Nothing (Just [ParameterInformation (InR (5 ,12 )) Nothing , ParameterInformation (InR (17 ,38 )) Nothing ]) (Just (InL 0 ))] (Just 0 ) (Just (InL 0 )),
234+ Just $ SignatureHelp [SignatureInformation " f :: forall a b. Eq a => a -> (Num b => b -> b) -> a" Nothing (Just [ParameterInformation (InR (25 ,26 )) Nothing , ParameterInformation (InR (31 ,46 )) Nothing ]) (Just (InL 1 )), SignatureInformation " f :: Integer -> (Num Any => Any -> Any) -> Integer" Nothing (Just [ParameterInformation (InR (5 ,12 )) Nothing , ParameterInformation (InR (17 ,38 )) Nothing ]) (Just (InL 1 ))] (Just 0 ) (Just (InL 1 ))
220235 ]
221236 ]
222237
0 commit comments