From a02b743463b68aaeba0886d5231f9390911da8f9 Mon Sep 17 00:00:00 2001 From: Scott Carda Date: Wed, 23 Sep 2020 13:32:16 -0700 Subject: [PATCH] Removed Bug2212 file, which has an invalid cycle in it. --- .../Simulators.Tests/Circuits/Bug2212.qs | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 src/Simulation/Simulators.Tests/Circuits/Bug2212.qs diff --git a/src/Simulation/Simulators.Tests/Circuits/Bug2212.qs b/src/Simulation/Simulators.Tests/Circuits/Bug2212.qs deleted file mode 100644 index 82ccb4bcfeb..00000000000 --- a/src/Simulation/Simulators.Tests/Circuits/Bug2212.qs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -namespace Bug2212 { - - function F<'T> (arg1 :'T , arg : Unit) : 'T { - return arg1; - } - - function RecursiveGeneric2<'T> (arg1 : (Unit -> 'T), arg2 : Int) : Int { - if ( arg2 <= 0 ) { - return arg2; - } else { - let _ = arg1(); - return RecursiveGeneric2<(Unit -> 'T)>(F(arg1,_),arg2 - 1); - } - } -} - -namespace Microsoft.Quantum.Simulation.Simulators.Tests.Circuits -{ - open Bug2212; - - operation Bug2212Test () : Unit - { - // Calling this function used to trigger a run time exception. - let x = RecursiveGeneric2(F(3,_), 10); - } -}