Skip to content

Commit b4f15a6

Browse files
committed
Make HTMLCollection covariant in E
1 parent 60a6b59 commit b4f15a6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

api-reports/2_12.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25826,7 +25826,7 @@ html[SO] type Base = HTMLBaseElement
2582625826
html[SO] type Body = HTMLBodyElement
2582725827
html[SO] type Button = HTMLButtonElement
2582825828
html[SO] type Canvas = HTMLCanvasElement
25829-
html[SO] type Collection[E] = HTMLCollection[E]
25829+
html[SO] type Collection[+E] = HTMLCollection[E]
2583025830
html[SO] type DList = HTMLDListElement
2583125831
html[SO] type DataList = HTMLDataListElement
2583225832
html[SO] type Div = HTMLDivElement

api-reports/2_13.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25826,7 +25826,7 @@ html[SO] type Base = HTMLBaseElement
2582625826
html[SO] type Body = HTMLBodyElement
2582725827
html[SO] type Button = HTMLButtonElement
2582825828
html[SO] type Canvas = HTMLCanvasElement
25829-
html[SO] type Collection[E] = HTMLCollection[E]
25829+
html[SO] type Collection[+E] = HTMLCollection[E]
2583025830
html[SO] type DList = HTMLDListElement
2583125831
html[SO] type DataList = HTMLDataListElement
2583225832
html[SO] type Div = HTMLDivElement

src/main/scala/org/scalajs/dom/HTMLCollection.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import scala.scalajs.js.annotation._
1414
*/
1515
@js.native
1616
@JSGlobal
17-
abstract class HTMLCollection[E] extends DOMList[E] {
17+
abstract class HTMLCollection[+E] extends DOMList[E] {
1818
def item(index: Int): E = js.native
1919

2020
/** Returns the specific node whose ID or, as a fallback, name matches the string specified by name. Matching by name

src/main/scala/org/scalajs/dom/html.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ object html {
1010
type Button = HTMLButtonElement
1111
type BR = HTMLBRElement
1212
type Canvas = HTMLCanvasElement
13-
type Collection[E] = HTMLCollection[E]
13+
type Collection[+E] = HTMLCollection[E]
1414
type DataList = HTMLDataListElement
1515
type Div = HTMLDivElement
1616
type DList = HTMLDListElement

0 commit comments

Comments
 (0)