File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -739,6 +739,8 @@ Type definitions
739
739
class A {
740
740
type B = C
741
741
type D[E] = F
742
+ type Abs
743
+ type Beta[B]
742
744
}
743
745
744
746
---
@@ -753,7 +755,13 @@ class A {
753
755
(type_definition
754
756
(type_identifier)
755
757
(type_parameters (identifier))
756
- (type_identifier)))))
758
+ (type_identifier))
759
+ (type_definition
760
+ (type_identifier))
761
+ (type_definition
762
+ (type_identifier)
763
+ (type_parameters
764
+ (identifier))))))
757
765
758
766
=======================================
759
767
Function declarations
Original file line number Diff line number Diff line change @@ -451,8 +451,11 @@ module.exports = grammar({
451
451
optional ( $ . opaque_modifier ) ,
452
452
'type' ,
453
453
$ . _type_constructor ,
454
- '=' ,
455
- field ( 'type' , $ . _type )
454
+ optional (
455
+ seq (
456
+ '=' ,
457
+ field ( 'type' , $ . _type ) )
458
+ )
456
459
) ) ,
457
460
458
461
// Created for memory-usage optimization during codegen.
Original file line number Diff line number Diff line change 3
3
# This is an integration test to generally check the quality of parsing.
4
4
5
5
SCALA_SCALA_LIBRARY_EXPECTED=100
6
- SCALA_SCALA_COMPILER_EXPECTED=67
6
+ SCALA_SCALA_COMPILER_EXPECTED=68
7
7
DOTTY_COMPILER_EXPECTED=65
8
8
9
9
if [ ! -d " $SCALA_SCALA_DIR " ]; then
You can’t perform that action at this time.
0 commit comments