From ee564f2f917a091d140cc50a59ee56b218dedc2d Mon Sep 17 00:00:00 2001 From: Robin Neatherway Date: Tue, 23 Jun 2015 11:09:56 +0100 Subject: [PATCH] Test with overloaded methods and request in call --- .../test/integration/ParamCompletion/FileTwo.fs | 6 ++++-- .../integration/ParamCompletion/ParamCompletionRunner.fsx | 7 ++++--- .../test/integration/ParamCompletion/Program.fs | 4 +++- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/FSharp.AutoComplete/test/integration/ParamCompletion/FileTwo.fs b/FSharp.AutoComplete/test/integration/ParamCompletion/FileTwo.fs index 105081bdb..37e1138b4 100644 --- a/FSharp.AutoComplete/test/integration/ParamCompletion/FileTwo.fs +++ b/FSharp.AutoComplete/test/integration/ParamCompletion/FileTwo.fs @@ -10,5 +10,7 @@ let add x y = x + y type NewObjectType() = - member x.Terrific (y : int) : int = - y + member x.Terrific (y : int, z : char) : int = y + member x.Terrific (y : int, z : System.DateTime) : int = y + member x.Terrific (y : Set<'a>, z : int) : Set<'a> = y + diff --git a/FSharp.AutoComplete/test/integration/ParamCompletion/ParamCompletionRunner.fsx b/FSharp.AutoComplete/test/integration/ParamCompletion/ParamCompletionRunner.fsx index 7f20a9750..426320c1e 100644 --- a/FSharp.AutoComplete/test/integration/ParamCompletion/ParamCompletionRunner.fsx +++ b/FSharp.AutoComplete/test/integration/ParamCompletion/ParamCompletionRunner.fsx @@ -18,9 +18,10 @@ p.project "Test1.fsproj" p.parse "FileTwo.fs" p.parse "Program.fs" Threading.Thread.Sleep(8000) -p.methods "Program.fs" 8 28 -p.methods "Program.fs" 6 18 -p.methods "Program.fs" 4 36 +p.methods "Program.fs" 4 37 +p.methods "Program.fs" 8 30 +p.methods "Program.fs" 8 35 +p.methods "Program.fs" 10 42 Threading.Thread.Sleep(1000) p.send "quit\n" p.finalOutput () diff --git a/FSharp.AutoComplete/test/integration/ParamCompletion/Program.fs b/FSharp.AutoComplete/test/integration/ParamCompletion/Program.fs index 8b8cf07af..ace5d5756 100644 --- a/FSharp.AutoComplete/test/integration/ParamCompletion/Program.fs +++ b/FSharp.AutoComplete/test/integration/ParamCompletion/Program.fs @@ -5,7 +5,9 @@ let testval = FileTwo.NewObjectType() let val2 = X.func(2) -let val3 = testval.Terrific(val2) +let val3 = testval.Terrific(val2, 'c') + +let val4 = System.DateTime.Parse("hello", ) [] let main args =