From 8f668c2373fcfd0296271c727977f5ca37cc00ec Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Wed, 4 Dec 2024 12:16:51 +0800 Subject: [PATCH] adds a test case (#24500) closes #24040 (cherry picked from commit c3120b6121506878f551477ed07d4c29a47f79a1) --- tests/concepts/tintypesection.nim | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/concepts/tintypesection.nim b/tests/concepts/tintypesection.nim index 92af7ebb54..363133faf4 100644 --- a/tests/concepts/tintypesection.nim +++ b/tests/concepts/tintypesection.nim @@ -20,3 +20,13 @@ block: # issue #22839 var y: Node[NotComparable]) proc `<`(a, b: NotComparable): bool = false var z: Node[NotComparable] + + +block: # bug #24040 + type + Xable = concept + proc x(y: Self): int + A[T: Xable] = tuple + foo: T + B[T: Xable] = object + a: A[T]