score:5

one way is to explicitly passing b

def p2(a: int, b: int): unit ={
    p1(a)(b)
}

second way is to mark b as implicit in the signature of p2

def p2(a: int)(implicit b: int): unit ={
  p1(a)
}

Related Query

More Query from same tag