1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker, cgen: fix interface embedding smartcast (fix #13296) (#15127)

This commit is contained in:
yuyi
2022-07-19 21:36:16 +08:00
committed by GitHub
parent 0afa2f76c8
commit 041e90b2e2
8 changed files with 89 additions and 28 deletions

View File

@ -1,6 +1,6 @@
import js.dom
fn get_canvas(elem JS.HTMLElement) &JS.HTMLCanvasElement {
fn get_canvas(elem JS.HTMLElement) JS.HTMLCanvasElement {
match elem {
JS.HTMLCanvasElement {
return elem