Typescript bug in LeetCode

I'm new to LeetCode. This was my first time trying it out. https://leetcode.com/problems/add-two-numbers/

When I run my code I get this error. The code is doing nothing but returning a value.

function addTwoNumbers(l1: ListNode | null, l2: ListNode | null): ListNode | null {
    return new ListNode(1);
}

If I return null it doesn't give this error. So it's failing to import the ListNode class. If I redefine the ListNode class in my code I get error TS2440: Import declaration conflicts with local declaration of 'ListNode'.

This is with TypeScript selected. Is there a way to report a bug in LeetCode? Edit: I found this

OS version: Mac OS 10.15.5 (19F101)
Browser: Brave V1.10.97

Also repro's in Chrome Version 83.0.4103.116 (Official Build) (64-bit)

image

Comments (1)