From a6c9a151d3ce51d53fc7f34722a7422c3c0faff4 Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Sun, 29 Aug 2021 10:25:40 +0200 Subject: interpreter: Make comparisons of different types a hard error --- docs/markdown/snippets/comp_error.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/markdown/snippets/comp_error.md (limited to 'docs') diff --git a/docs/markdown/snippets/comp_error.md b/docs/markdown/snippets/comp_error.md new file mode 100644 index 0000000..6d1bf46 --- /dev/null +++ b/docs/markdown/snippets/comp_error.md @@ -0,0 +1,5 @@ +## Comparing two objects with different types is now an error + +Using the `==` and `!=` operators to compare objects of different (for instance +`[1] == 1`) types was deprecated and undefined behavior since 0.45.0 and is +now a hard error. -- cgit v1.1